libmylib.a:calculator.o
	ar -rc $@ $^

calculator.o:calculator.cpp
	g++ -c calculator.cpp -o calculator.o -std=c++11

.PHONY:output
output:
	cp *.h mylib/include
	cp *.a mylib/lib

.PHONY:clean
clean:
	rm -f *.a
	rm -f *.o
	
